import java.util.Random;

public class test5 {
    public static void main(String[] args) {

        //把奖池打乱顺序
        int[] arr = {2, 588, 888, 1000, 10005};
        //随机索引
        Random r = new Random();
        for (int i = 0; i < arr.length; i++) {
            int number = r.nextInt(arr.length);
            int temp = arr[i];
            arr[i] = arr[number];
            arr[number] = temp;
        }

        //遍历数组
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i] + " ");
        }
    }
}
